﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;
using AmazonAssociatesAPIWCF;

public partial class UserControls_AmazonRelatedProducts : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        RadGrid1.NeedDataSource += new Telerik.Web.UI.GridNeedDataSourceEventHandler(RadGrid1_NeedDataSource);
    }

    void RadGrid1_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
    {
        AmazonData a = new AmazonData();
        RadGrid1.DataSource = a.DoSimilarityLookupByID("1430223812");
    }
    protected void Timer1_Tick(object sender, EventArgs e)
    {
        RadGrid1.Rebind();
    }
}
